package sql_age;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

public class MapTest extends Mapper<LongWritable,Student, IntWritable,IntWritable> {
    @Override
    protected void map(LongWritable key, Student value, Context context) throws IOException, InterruptedException {
        context.write(new IntWritable(value.getAge()),new IntWritable(1));
    }
}
